﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace GameSchool.Models
{

	public class ChangePasswordModel
    {
        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Current password")]
        public string OldPassword { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        [Display(Name = "New password")]
        public string NewPassword { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "Confirm new password")]
        [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }

    public class LogOnModel
    {
        [Required]
        [Display(Name = "Notandanafn")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Lykilorð")]
        public string Password { get; set; }

        [Display(Name = "Muna eftir mér?")]
        public bool RememberMe { get; set; }
    }

	
    public class RegisterModel
    {
        [Required]
        [Display(Name = "Notandanafn")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Tölvupóstur")]
        public string Email { get; set; }

		[Required]
		[Display(Name = "Fullt nafn")]
		public string FullName { get; set; }

		[Required]
		[Display(Name = "Heimilisfang")]
		public string Address { get; set; }

		[Required]
		[Display(Name = "Kennitala")]
		public string Ssn { get; set; }

		[Required]
		[Display(Name = "Deild")]
		public string Division { get; set; }

		[Required]
		[Display(Name = "Braut")]
		public string SubDivision { get; set; }

		[Required]
		[StringLength(100, ErrorMessage = "Lykilorðið þarf að vera að lágmarki {2} stafa langt.", MinimumLength = 6)]
		[DataType(DataType.Password)]
		[Display(Name = "Lykilorð")]
		public string Password { get; set; }

		[DataType(DataType.Password)]
		[Display(Name = "Lykilorð aftur")]
		[Compare("Password", ErrorMessage = "Reitirnir fyrir lykilorð stemma ekki.")]
		public string ConfirmPassword { get; set; }

		public string roleName { get; set; }

		//public int Points { get; set; }
    }
}
